#include<stdio.h>
#include<string.h>
int main(){
    char s[]="There   are   apples;   oranges   and   peaches   on   the   table.  ";
    int tot=0;
    char *p=s;
    while(*p){
        while(*p&&!isalpha(*p))p++;
        while(*p&&isalpha(*p))putchar(tolower(*p)),p++;
        putchar('\n');
        ++tot;
    }
    printf("%d\n",tot);

    return 0;
}
